import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== global declare
const { $Lazy, globalConfig:{COVIDUrl} } = window
// ===================================================================== $Lazy
const Tips 					= $Lazy.load(()=>import('#tp/tips'))
// ===================================================================== component
class Index extends React.Component{
	state = {
		// 提交表单列表
		formData : [
			{ label: '用户',		name: 'user',	hide:true,	full:true	 },
			{ label: '操作码',	name: 'password',	type:'password',	required:true,	full:true	 },
		]
	}
	submit = {}
	
	open = (uuids) => {
		this.submit = {uuids}
		this.modal.open({formRef:this.formRef})
	}
	render(){
		return (
			FormModal.call(this,{title:'推送到天府健康码', labelWidth:'s4', width:600,api:COVIDUrl+'reports/pushgov',refresh:false,
				prefix: (<Tips text='请输入操作码' className = 'mb5' />)
			})
		)
	}
}

export default Index